package cn.dzh.dal.mapper;

import cn.dzh.model.bean.CommodityBase;
import cn.dzh.model.bean.CommodityDraft;
import cn.dzh.model.bean.ExchangePrice;
import cn.dzh.model.bean.ServiceTerms;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
* @author Admin
* @description 针对表【commodity_draft(商品草稿表)】的数据库操作Mapper
* @createDate 2023-10-24 16:44:37
* @Entity cn.dzh.bean.CommodityDraft
*/
@Mapper
public interface CommodityDraftMapper {

    int deleteByPrimaryKey(Long id);


    int insert(CommodityDraft record);

    int insertSelective(CommodityDraft record);

    @Select("select * from commodity_draft where id=#{id}")
    CommodityDraft selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CommodityDraft record);

    int updateByPrimaryKey(CommodityDraft record);


    int audit(String operateStatus, int id);

    /*String judgeUserById(int id);*/

    String selectStatus(int id);

    CommodityDraft selectById(int id);
}
